<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pengerjaran</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=Pengejaran_rekrut_langsung_".$strkode_dealer."_".$bulan.".xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
</head>
<body>
<table border="1">
<tr>
	<th>Bulan</th>
	<th colspan='3'><?php echo $nama_bulan?></th>
</tr>
<tr><th>NO.</th>
<th>Kode Dealer</th>
<th>Nama</th><th>Total Omset</th></tr>
<?php
	$no = 1;
	foreach($query as $row){
		echo "<tr><td>".$no++."</td>
				<td>".$row->strkode_dealer."</td>
			<td>".$row->strnama_dealer."</td>
			<td>".$row->inttotal_omset."</td>
		</tr>";
	}
?>
</table>
</body>
</html>
